package org.dromara.system.domain.bo;

import org.dromara.system.domain.TCustom;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 客户信息业务对象 t_custom
 *
 * @author Lion Li
 * @date 2024-10-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TCustom.class, reverseConvertGenerate = false)
public class TCustomBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Integer id;

    /**
     * 客户姓名
     */
    @NotBlank(message = "客户姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 客户电话
     */
    @NotBlank(message = "客户电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 门面信息
     */
    @NotBlank(message = "门面信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 客户地址
     */
    @NotBlank(message = "客户地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 关联用户的ID
     */
//    @NotNull(message = "关联用户的ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String connectUserId;


     private  Integer my;

}
